Author: Marin Radu
Decode multiple QR codes from a single image, filtering out fake flags and identifying the real one.
- Automation
- QR decoding
- Regex
When you decode all the QR codes, you get an endpoint that doesn't exist in my CTF, a bunch of fake flags in the form of hex strings, and the flag, rendered only once.
The trick is to separate the real flag from all the fake ones. You do this using regex, looking for the pattern of 17 hex chars:
match = re.match(r"CSCTF{([0-9A-F]{17})}", s)
Flag:
CSCTF{g0od_ch01c3_budDy}